import { clsx, type ClassValue } from 'clsx'
import { twMerge } from 'tailwind-merge'

export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs))
}

// 公共 CDN 配置
export const CDN_ECHARTS = 'https://unpkg.com/echarts@5.3.0/dist/echarts.min.js'

export const CDN_REACT_MARKDOWN =
  // 'https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/react-markdown/4.3.1/react-markdown.js'
  'https://cdn.staticfile.net/react-markdown/4.3.1/react-markdown.js'
